<?php
namespace app\helppay\controller;
use app\AdminRest;
use app\helppay\model\HelppayConfig;
use think\App;
use app\helppay\model\Helppay as Model;


class AdminHelpPay extends AdminRest
{

    protected $model;

    protected $config_model;



    public function __construct(App $app) {

        parent::__construct($app);

        $this->model         = new Model();

        $this->config_model = new HelppayConfig();

    }


    /**
     * @author chenniang
     * @DataTime: 2021-06-23 15:28
     * @功能说明:配置详情
     */
    public function configInfo(){


        $dis = [

            'uniacid' => $this->_uniacid
        ];

        $data = $this->config_model->dataInfo($dis);

        return $this->success($data);


    }


    /**
     * @author chenniang
     * @DataTime: 2021-06-23 15:29
     * @功能说明:编辑配置
     */
    public function configUpdate(){

        $input = $this->_input;

        $dis = [

            'uniacid' => $this->_uniacid
        ];

        $data = $this->config_model->dataUpdate($dis,$input);

        return $this->success($data);
    }





}
